(function($){
    $.fn.exportFormat = function(settings){
        var defaults = {}
        settings = $.extend(defaults, settings);
        return this.each(function(index){
            $(this).click(function(){
                var href = $(this).attr("href").replace(/\?[\s\S]*/i,"");
                var params = window.gbl_var.paginator.getherDataParams();
                var paramsStr = "";
                for(var p in params) {
                    paramsStr += p + "=" + params[p] + "&";
                }
                if(paramsStr.length > 0)
                    href += "?" + paramsStr.substr(0,paramsStr.length - 1);
                $(this).attr("href", href);
            });
        });
    };
})(jQuery);